import { ktlapi, ApiUrl } from '@/utils/request'

export function listCustomer(data) {
  return ktlapi({
    apiurl: ApiUrl.ProcSet,
    name: 'GetCustomer',
    data
  })
}

export function listProxyType() {
  return ktlapi({
    name: 'GetProxyType'
  })
}

export function updateCustomer(data) {
  return ktlapi({
    name: 'UpdateCustomer',
    data
  })
}
export function addCustomer(data) {
  return ktlapi({
    name: 'AddCustomer',
    data
  })
}

export function listOrder(proxyId) {
  return ktlapi({
    name: 'GetOrderListByProxyId',
    data: {
      ProxyId: proxyId
    }
  })
}

export function listPrevRechargeDetail(ProxyId) {
  return ktlapi({
    name: 'GetPrevRechargeByProxyId',
    data: {
      ProxyId
    }
  })
}

export function AddRechargeOrder(data) {
  return ktlapi({
    name: 'AddRechargeOrder',
    data
  })
}

export function GetOrderProduct(OrderId) {
  return ktlapi({
    name: 'GetOrderProduct',
    data: {
      OrderId
    }
  })
}

export function UpdateOrderProduct(data) {
    return ktlapi({
      name: 'UpdateOrderProduct',
      data
    })
  }

export function DisableCustomer(CustomerId) {
  return ktlapi({
    name: 'DisableCustomer',
    data: {
      CustomerId
    }
  })
}

export function OpenCustomer(CustomerId) {
  return ktlapi({
    name: 'OpenCustomer',
    data: {
      CustomerId
    }
  })
}
